from google.appengine.ext import ndb

class User(ndb.Model):
    _use_cache = False
    _use_memcache = False
    city = ndb.StringProperty()

@ndb.transactional
def put_kaz():
  kaz = User(id="kaz", city="MTV").put()
  print kaz.get()

kaz = User(id="kaz", city="TOK").put()
put_kaz()
